package yxy.cherry.battle.module.affix.condition;

import yxy.cherry.battle.Fighter;

/**
 * @author James
 * 当属性大于固定值时
 * @date 2022/2/25 18:08
 **/
@AffixconditionType(Type = 13)
public class AffixCondition13HPHigh extends AffixCondition{

    public AffixCondition13HPHigh(int param) {
        super(param);
    }

    @Override
    public boolean checkOne(Fighter source) {
        return true;
    }

    @Override
    public boolean check(Fighter actor, Fighter target) {
        return target.get血量万分值() >= getParam();
    }
}
